-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[P2P] Refactor P2P submodules #895
Conversation
0992775
to
e11a55a
Compare
3f0dd91
to
44a2750
Compare
44a2750
to
8bfecbf
Compare
8bfecbf
to
6f87169
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bryanchriswhite Don't really have any good / constructive feedback on this. As long as things work, superficially this looks pretty good!
mockModulesRegistry.EXPECT().GetModule(current_height_provider.ModuleName).Return(nil, runtime.ErrModuleNotRegistered(current_height_provider.ModuleName)).AnyTimes() | ||
mockBus.EXPECT().GetModulesRegistry().Return(mockModulesRegistry).AnyTimes() | ||
modulesRegistry := runtime.NewModulesRegistry() | ||
mockBus.EXPECT(). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm 👁️ ing patterns emerge!
- comment updates - one-lining error checks Co-authored-by: Daniel Olshansky <[email protected]>
@Reviewer
This PR may be more digestible / reviewable on a commit-by-commit basis. Commits are organized logically and any given line is only modified in a single commit, with few exceptions*.
*(In the interest of preserving the git-time-continuum 👮🚨, this applies in batches of commits between comments or reviews by humans, only once "in review")
Description
Refactor P2P module dependencies as submodules, ultimately to support usage P2P module usage in the CLI.
Issue
Related:
Dependant(s):
peer connections
subcommand #801peer list
subcommand #892Type of change
Please mark the relevant option(s):
List of changes
CurrentHeightProvider
to a submodule interface typeconsensusCurrentHeightProvider
implementationRouter
interface to a submodule interface typebackgroundRouter
implementation to submodulerainTreeRouter
implementation to submoduleTesting
make develop_test
; if any code changes were mademake test_e2e
on k8s LocalNet; if any code changes were madee2e-devnet-test
passes tests on DevNet; if any code was changedRequired Checklist
godoc
format comments on touched members (see: tip.golang.org/doc/comment)If Applicable Checklist
shared/docs/*
if I updatedshared/*
README(s)